package com.appspile.android.ANMP.applocksexy.commons;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

/**
 * Created by TRUNG on 2/1/2015.
 */
public class IntentHelper {

    public static void replaceFragment(FragmentActivity fragmentActivity, int containerFragmentId, Fragment newFragment) {
        FragmentManager fragmentManager = fragmentActivity.getSupportFragmentManager();
        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
        fragmentTransaction.replace(containerFragmentId, newFragment);
        fragmentTransaction.commit();
    }
}
